all: main

main: main.o book.o library.o loan.o menu.o user.o
	g++ -Wall -Wextra main.o book.o library.o loan.o menu.o user.o sqlite\sqlite3.o -o library
	
book.o: book.cpp
	g++ -Wall -Wextra -c book.cpp

library.o: library.cpp
	g++ -Wall -Wextra -c library.cpp

loan.o: loan.cpp
	g++ -Wall -Wextra -c loan.cpp

menu.o: menu.cpp
	g++ -Wall -Wextra -c menu.cpp

user.o: user.cpp
	g++ -Wall -Wextra -c user.cpp

clean:
	del -rf *.o library.exe